﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using sexhealth.console.service.post;
using System.Text;
using sexhealth.console.service.post.vo;

public partial class usercontrol_IndexBottom1 : System.Web.UI.UserControl
{
    PostService postService = new PostService();
    int chid = 4;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack) 
        {
            IList<ChannelVO> chList = postService.GetChannelList(chid);
            StringBuilder sb = new StringBuilder();
            foreach (ChannelVO ch in chList) 
            {
                sb.Append("<tr><td>");
                sb.Append(" <a href='postlistdate.aspx?chid="+ch.ChannelNo+"' class='b02'>"+ch.Name+"</a>");
                sb.Append("</tr></td>");
                 
            }
            ltlList.Text = sb.ToString();
        }
    }
}
